<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<title>
			毛毛猴客服系统<%= role %>
		</title>
		<script src="/common/vendor/requirejs-css/require-2.1.11.js" data-main="/app.js" type="text/javascript" charset="utf-8"></script>
	</head>

	<body>
		<table style="position: fixed;width: 100%;height: 100%;top:0;left:0;text-align: center;z-index:-1;">
			<tr>
				<td style="text-align: right;vertical-align: bottom;"><span id="logo" class="animated swing logo">欢迎使用毛毛猴客服系统</span></td>
			</tr>
			<tr>
				<td style="text-align: right;vertical-align: top;"><span class="animated bounceInRight version">(Alpha 0.0.1)</span></td>
			</tr>
		</table>
		<input type="hidden" id="jobId" value="<%= jobId %>" />
		<input type="hidden" id="host" value="<%= host %>" />
		<!--<div class="deskGlass"></div>-->
		<div class="deskicon icon-person" id="SYS_PERSON" mtype="icon">
			<label>
				<%= jobId %>
			</label>
		</div>
		<% if(role=='ADMIN'){ %>
		<div class="deskicon icon-plugin" id="SYS_PLUGIN" mtype="icon">
			<label>插件管理</label>
		</div>
		<% } %>
		<div class="bottomMenuBar">
			<div class="menuBarContainer" id="menuBarContainer">
				<!--<div class="menuItem">
					<div class="edge">12</div>
					<img src="res/images/agent-header.png" title=""/>
					<span>我是一只猫猫后</span>
				</div>-->
			</div>
		</div>

		<div id="domRightClickMenu" class="easyui-menu" data-options="" style="width:160px;display: none;">
			<div data-options="iconCls:'icon-active'">
				工作模式
				<% if(business.length) {%>
					<div style="width:160px;">
						<% business.forEach(function(name){ %>
							<div data-options="name:'active'"><%= name %></div>
						<% }) %>
					</div>
				<% } %>
			</div>
			<div data-options="name:'full',iconCls:'icon-full'">负荷模式</div>
			<div data-options="name:'sleep',iconCls:'icon-sleep'">睡眠模式</div>
			<div class="menu-sep"></div>
			<div data-options="name:'logout',iconCls:'icon-out'">注销登录</div>
		</div>

		<!--<menu class="menu-toolbar">
			<li><a href="#">☀</a></li>
			<li><a href="#">✈</a></li>
		</menu>-->

		<% include template.html%>
	</body>

</html>